home *** CD-ROM | disk | FTP | other *** search
-
- /* Flip notes around an axis*/
-
- /* © Dick Doyle */
-
- options results
-
-
- MXSLIDER "Axis:,0,127,60"
- MXRADIO "Selected Notes,All Notes"
- MXSLIDER "Channel Select,1,16,1"
- MXREQUEST "FLIP,Flip"
- if result == 0 then exit
-
- MXPOINTER "sleepy"
- MXVALUE 1
- rotor = result
-
- MXVALUE 3
- chanum = result
-
- MXVALUE 2
- if result == 0 then BEGINSCAN 'selected'
- else BEGINSCAN 'all'
-
- if result ~= 0 then do forever
-
- NEXTEVENT
- if result == 0 then break
-
- if EVENT.CHANNEL == chanum - 1 then
-
- if EVENT.TYPE == 'NOTE' then
-
- if event.num ~= rotor then do
- newval = rotor - (event.num - rotor)
-
-
- EVENT.NUM = newval
-
- REPLEVENT
-
- end
- end
-
-
- ENDSCAN
-
- MXPOINTER "normal"
- exit
-